#!/usr/bin/env python
# -*- coding: utf-8 -*-

import requests
import sys

cookies = {
  "SUB": "_2A255nI76DeTxGeNK71EZ8yjLyzqIHXVbfhKyrDV6PUJbrdAKLRnVkW0LDkY5hfkMN6yC456-WQlwtpievQ..",
  "M_WEIBOCN_PARAMS": "rl%3D1",
  "gsid_CTandWM": "4ufq7f8f1jM986wdIo8rNmQbObo",
  "_T_WM": "df583be34d539d155000c050a3270af2"
}

r = requests.get(sys.argv[1], cookies=cookies)

str = r.text
if isinstance(str, unicode):
  print str.encode("utf-8")
else:
  print str.decode("utf-8").encode("utf-8")